package com.aspect.aspect.service;

import com.aspect.aspect.annotation.MyAnnotation;
import org.springframework.stereotype.Service;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/10/25 17:49
 */

@Service
public class HomeService {
    @MyAnnotation
    public void hello(String name) throws Throwable {
        System.out.println("HomeService::hello "+name);
        if( "sjw".equals( name) ) throw new Throwable();
    }
    public void confirm(String name){
        System.out.println("HomeService::confirm "+name);
    }
}
